var pathname = document.getElementById("pathname").innerText;
embedpano({ xml: pathname, target: "pano", html5: "auto", mobilescale: 1.0, passQueryParameters: true });
$('#pathname').hide();

